Skip to content

Comments

Add Web API example#267

Closed
witoszekdev wants to merge 10 commits intomainfrom
web-api
Closed

Add Web API example#267
witoszekdev wants to merge 10 commits intomainfrom
web-api

Conversation

@witoszekdev
Copy link
Member

@witoszekdev witoszekdev commented Jan 3, 2025

This PR updates template to Next.js 15 and adds example for Web API routes using /app directory which use Edge Runtime.

It also adds an example for sync webhook

@github-actions
Copy link

github-actions bot commented Jan 3, 2025

Differences Found

⚠️ 69 packages or licenses were added.

Expand
License	Package
Apache-2.0	@eslint/config-array
Apache-2.0	@eslint/core
Apache-2.0	@eslint/object-schema
Apache-2.0	@eslint/plugin-kit
Apache-2.0	@humanfs/core
Apache-2.0	@humanfs/node
Apache-2.0	@humanwhocodes/retry
Apache-2.0	@img/sharp-darwin-arm64
Apache-2.0	@img/sharp-darwin-x64
Apache-2.0	@img/sharp-linux-arm
Apache-2.0	@img/sharp-linux-arm64
Apache-2.0	@img/sharp-linux-s390x
Apache-2.0	@img/sharp-linux-x64
Apache-2.0	@img/sharp-linuxmusl-arm64
Apache-2.0	@img/sharp-linuxmusl-x64
Apache-2.0	@img/sharp-wasm32
Apache-2.0	@img/sharp-win32-ia32
Apache-2.0	@img/sharp-win32-x64
Apache-2.0	@swc/counter
Apache-2.0	sharp
LGPL-3.0-or-later	@img/sharp-libvips-darwin-arm64
LGPL-3.0-or-later	@img/sharp-libvips-darwin-x64
LGPL-3.0-or-later	@img/sharp-libvips-linux-arm
LGPL-3.0-or-later	@img/sharp-libvips-linux-arm64
LGPL-3.0-or-later	@img/sharp-libvips-linux-s390x
LGPL-3.0-or-later	@img/sharp-libvips-linux-x64
LGPL-3.0-or-later	@img/sharp-libvips-linuxmusl-arm64
LGPL-3.0-or-later	@img/sharp-libvips-linuxmusl-x64
LGPL-3.0-or-later	@img/sharp-wasm32
LGPL-3.0-or-later	@img/sharp-win32-ia32
LGPL-3.0-or-later	@img/sharp-win32-x64
MIT	@emnapi/runtime
MIT	@eslint-community/regexpp
MIT	@eslint/js
MIT	@img/sharp-wasm32
MIT	@rtsao/scc
MIT	@typescript-eslint/eslint-plugin
MIT	@typescript-eslint/type-utils
MIT	@typescript-eslint/typescript-estree
MIT	array.prototype.findlast
MIT	ast-types-flow
MIT	call-bind-apply-helpers
MIT	call-bound
MIT	color
MIT	color-string
MIT	data-view-buffer
MIT	data-view-byte-length
MIT	data-view-byte-offset
MIT	dunder-proto
MIT	es-define-property
MIT	es-errors
MIT	es-object-atoms
MIT	get-proto
MIT	graphemer
MIT	hasown
MIT	is-data-view
MIT	math-intrinsics
MIT	own-keys
MIT	possible-typed-array-names
MIT	safe-push-apply
MIT	set-function-length
MIT	side-channel-list
MIT	side-channel-map
MIT	side-channel-weakmap
MIT	simple-swizzle
MIT	string.prototype.includes
MIT	string.prototype.repeat
MIT	ts-api-utils
MIT	undici-types

Summary

Expand
License Name Package Count Packages
0BSD 1
Packages
  • tslib
MPL-2.0 1
Packages
  • axe-core
Public Domain 1
Packages
  • jsonify
Python-2.0 1
Packages
  • argparse
CC-BY-4.0 2
Packages
  • @saleor/macaw-ui
  • caniuse-lite
CC0-1.0 2
Packages
  • language-subtag-registry
  • type-fest
<<missing>> 3
Packages
  • busboy
  • saleor-app-template
  • streamsearch
BSD-3-Clause 11
Packages
  • @saleor/eslint-plugin-saleor-app
  • abab
  • asn1js
  • esquery
  • ieee754
  • immutable
  • signedsource
  • source-map
  • source-map-js
  • sprintf-js
  • tough-cookie
LGPL-3.0-or-later 11
Packages
  • @img/sharp-libvips-darwin-arm64
  • @img/sharp-libvips-darwin-x64
  • @img/sharp-libvips-linux-arm
  • @img/sharp-libvips-linux-arm64
  • @img/sharp-libvips-linux-s390x
  • @img/sharp-libvips-linux-x64
  • @img/sharp-libvips-linuxmusl-arm64
  • @img/sharp-libvips-linuxmusl-x64
  • @img/sharp-wasm32
  • @img/sharp-win32-ia32
  • @img/sharp-win32-x64
BSD-2-Clause 15
Packages
  • @typescript-eslint/parser
  • @typescript-eslint/typescript-estree
  • css-what
  • damerau-levenshtein
  • dotenv
  • entities
  • escodegen
  • eslint-scope
  • espree
  • esprima
  • esrecurse
  • estraverse
  • esutils
  • uri-js
  • webidl-conversions
ISC 36
Packages
  • @saleor/app-sdk
  • cli-width
  • cliui
  • electron-to-chromium
  • eslint-import-resolver-typescript
  • fastq
  • flatted
  • fs.realpath
  • get-caller-file
  • glob
  • glob-parent
  • graceful-fs
  • inflight
  • inherits
  • isexe
  • lru-cache
  • minimatch
  • mute-stream
  • once
  • picocolors
  • And 16 more...
Apache-2.0 40
Packages
  • @ampproject/remapping
  • @eslint/config-array
  • @eslint/core
  • @eslint/object-schema
  • @eslint/plugin-kit
  • @humanfs/core
  • @humanfs/node
  • @humanwhocodes/module-importer
  • @humanwhocodes/retry
  • @img/sharp-darwin-arm64
  • @img/sharp-darwin-x64
  • @img/sharp-linux-arm
  • @img/sharp-linux-arm64
  • @img/sharp-linux-s390x
  • @img/sharp-linux-x64
  • @img/sharp-linuxmusl-arm64
  • @img/sharp-linuxmusl-x64
  • @img/sharp-wasm32
  • @img/sharp-win32-ia32
  • @img/sharp-win32-x64
  • And 20 more...
MIT 767
Packages
  • @0no-co/graphql.web
  • @aashutoshrathi/word-wrap
  • @ardatan/relay-compiler
  • @ardatan/sync-fetch
  • @babel/code-frame
  • @babel/compat-data
  • @babel/core
  • @babel/generator
  • @babel/helper-annotate-as-pure
  • @babel/helper-compilation-targets
  • @babel/helper-create-class-features-plugin
  • @babel/helper-environment-visitor
  • @babel/helper-function-name
  • @babel/helper-hoist-variables
  • @babel/helper-member-expression-to-functions
  • @babel/helper-module-imports
  • @babel/helper-module-transforms
  • @babel/helper-optimise-call-expression
  • @babel/helper-plugin-utils
  • @babel/helper-replace-supers
  • And 747 more...

@witoszekdev
Copy link
Member Author

@lkostrowski Do we want this PR to be merged to main, or maybe do we want to have it as separate branch? (this way we can remove pages and move app router route to /api

@witoszekdev witoszekdev marked this pull request as ready for review February 11, 2025 12:24
@witoszekdev witoszekdev requested a review from a team February 11, 2025 12:24
@lkostrowski
Copy link
Member

Let's keep it open until we release v1.0.0 and API is stable

Here we can dogfood it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants